import request from '@/utils/request'

// 查询产品装箱列表
export function listPackage(query) {
  return request({
    url: '/order/package/list',
    method: 'get',
    params: query
  })
}

// 查询产品装箱详细
export function getPackage(packId) {
  return request({
    url: '/order/package/' + packId,
    method: 'get'
  })
}

// 新增产品装箱
export function addPackage(data) {
  return request({
    url: '/order/package',
    method: 'post',
    data: data
  })
}

// 修改产品装箱
export function updatePackage(data) {
  return request({
    url: '/order/package',
    method: 'put',
    data: data
  })
}

// 删除产品装箱
export function delPackage(packId) {
  return request({
    url: '/order/package/' + packId,
    method: 'delete'
  })
}
// 删除产品装箱
export function sendPackage(packId) {
  return request({
    url: '/order/package/send/' + packId,
    method: 'get'
  })
}
